﻿using System;
using System.ComponentModel;

using DevExpress.Xpo;
using DevExpress.Data.Filtering;

using DevExpress.ExpressApp;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Persistent.Validation;

namespace DrugShop.Module
{
    [DefaultClassOptions]
    public class 采购计划 : XPObject
    {
        public 采购计划(Session session)
            : base(session)
        {
            // This constructor is used when an object is loaded from a persistent storage.
            // Do not place any code here or place it only when the IsLoading property is false:
            // if (!IsLoading){
            //    It is now OK to place your initialization code here.
            // }
            // or as an alternative, move your initialization code into the AfterConstruction method.
        }
        public override void AfterConstruction()
        {
            base.AfterConstruction();
            // Place here your initialization code.
        }
        private string _药品编码;
        [Custom("Caption", "药品编码")]
        public string 药品编码
        {
            get { return _药品编码; }
            set { SetPropertyValue<string>("药品编码", ref _药品编码, value); }
        }
        private string _药品ID;
        [Custom("Caption", "药品ID")]
        public string 药品ID
        {
            get { return _药品ID; }
            set { SetPropertyValue<string>("药品ID", ref _药品ID, value); }
        }

        private string _中文名称;
        [Custom("Caption", "中文名称")]
        public string 中文名称
        {
            get { return _中文名称; }
            set { SetPropertyValue<string>("中文名称", ref _中文名称, value); }
        }
        private string _药品规格;
        [Custom("Caption", "药品规格")]
        public string 药品规格
        {
            get { return _药品规格; }
            set { SetPropertyValue<string>("药品规格", ref _药品规格, value); }
        }
        private string _大包装;
        [Custom("Caption", "大包装")]
        public string 大包装
        {
            get { return _大包装; }
            set { SetPropertyValue<string>("大包装", ref _大包装, value); }
        }
        private decimal _参考价格;
        [Custom("Caption", "参考价格")]
        public decimal 参考价格
        {
            get { return _参考价格; }
            set { SetPropertyValue<decimal>("参考价格", ref _参考价格, value); }
        }
        private int _计划数量;
        [Custom("Caption", "计划数量")]
        public int 计划数量
        {
            get { return _计划数量; }
            set { SetPropertyValue<int>("计划数量", ref _计划数量, value); }
        }
        private int _药品库存上限;
        [Custom("Caption", "药品库存上限")]
        public int 药品库存上限
        {
            get { return _药品库存上限; }
            set { SetPropertyValue<int>("药品库存上限", ref _药品库存上限, value); }
        }
        private int _药品库存下限;
        [Custom("Caption", "药品库存下限")]
        public int 药品库存下限
        {
            get { return _药品库存下限; }
            set { SetPropertyValue<int>("药品库存下限", ref _药品库存下限, value); }
        }
        private int _药品类型;
        [Custom("Caption", "药品类型")]
        public int 药品类型
        {
            get { return _药品类型; }
            set { SetPropertyValue<int>("药品类型", ref _药品类型, value); }
        }
        private int _供应商编码;
        [Custom("Caption", "供应商编码")]
        public int 供应商编码
        {
            get { return _供应商编码; }
            set { SetPropertyValue<int>("供应商编码", ref _供应商编码, value); }
        }
        private DateTime _计划日期;
        [Custom("Caption", "计划日期")]
        public DateTime 计划日期
        {
            get { return _计划日期; }
            set { SetPropertyValue<DateTime>("计划日期", ref _计划日期, value); }
        }
        private string _输入码;
        [Custom("Caption", "输入码")]
        public string 输入码
        {
            get { return _输入码; }
            set { SetPropertyValue<string>("输入码", ref _输入码, value); }
        }

        
    }

}
